#define _CRT_SECURE_NO_WARNINGS 
#include<stdio.h>
#include<string.h>
int my_strlen(char * str)
{
	int count = 0;
	char* p = str;
	while ( * str != '\0');
	{
		count++;
		p++;
	}
	return count;
}

int my_strlen(char * str);

int main()
{
	//int a = 0;
	//int* pa = &a;
	//printf("%d", *pa);
	//*pa = 10;
	//printf("%d\n\n", *pa);

	//int arr[] = { 1,2,3,4,5,6,7,8,9 };
	//int* pb = arr;
	//int count = sizeof(arr) / sizeof(arr[0]);


	//for (int i= 0; i < count; i++)
	//{
	//	printf("%d", *(pb + i));
	//}
	//printf("\n");
	//for (int i = 0; i < count; i++)
	//{
	//	printf("%d", *pb);
	//	pb++;
	//}


	char arr2[] = "abcdef";
	int len = my_strlen(arr2);
	printf("%d\n", len);

	return 0;
}


//int my_strlen(char* s)
//{
//	char* p = s;
//	while (*p != '\0')
//		p++;
//	return p - s;
//}
//int main()
//{
//	printf("%d\n", my_strlen("abc"));
//	return 0;
//} 